package com.ruoyi.common.service.impl;

import java.util.Date;
import java.util.List;

import com.ruoyi.common.dao.MycreatedMapper;
import com.ruoyi.common.entity.Mycreated;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.common.service.IMycreatedService;

/**
 * VIEWService业务层处理
 *
 * @author dustball
 * @date 2021-04-23
 */
@Service
public class MycreatedServiceImpl implements IMycreatedService {
    @Autowired
    private MycreatedMapper mycreatedMapper;

    /**
     * 查询VIEW
     *
     * @param starttime VIEWID
     * @return VIEW
     */
    @Override
    public Mycreated selectMycreatedById(Date starttime) {
        return mycreatedMapper.selectMycreatedById(starttime);
    }

    /**
     * 查询VIEW列表
     *
     * @param mycreated VIEW
     * @return VIEW
     */
    @Override
    public List<Mycreated> selectMycreatedList(Mycreated mycreated) {
        return mycreatedMapper.selectMycreatedList(mycreated);
    }

    /**
     * 新增VIEW
     *
     * @param mycreated VIEW
     * @return 结果
     */
    @Override
    public int insertMycreated(Mycreated mycreated) {
        return mycreatedMapper.insertMycreated(mycreated);
    }

    /**
     * 修改VIEW
     *
     * @param mycreated VIEW
     * @return 结果
     */
    @Override
    public int updateMycreated(Mycreated mycreated) {
        return mycreatedMapper.updateMycreated(mycreated);
    }

    /**
     * 批量删除VIEW
     *
     * @param starttimes 需要删除的VIEWID
     * @return 结果
     */
    @Override
    public int deleteMycreatedByIds(Date[] starttimes) {
        return mycreatedMapper.deleteMycreatedByIds(starttimes);
    }

    /**
     * 删除VIEW信息
     *
     * @param starttime VIEWID
     * @return 结果
     */
    @Override
    public int deleteMycreatedById(Date starttime) {
        return mycreatedMapper.deleteMycreatedById(starttime);
    }
}
